package com.jd.nbd.strategy02;

/**
 * 应用场合
 */
public class Context {
  private StrategyReport strategy;//策略接口

  /**
   * 想生成那种报表就用那个实现类
   *
   * @param strategy
   */
  public Context(StrategyReport strategy) {
    this.strategy = strategy;
  }

  /**
   * 生成报表
   */
  public void createReport() {
    this.strategy.createReport();
  }
}